package com.example.financeapi;

import com.example.financeapi.entity.CompanyList;
import com.example.financeapi.entity.FSecuritiesCompany;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
@Slf4j
public class test111 {

    public static void main(String[] args) {
        List<FSecuritiesCompany> list = new ArrayList<>();
        FSecuritiesCompany fSecuritiesCompany =new FSecuritiesCompany();
        //fSecuritiesCompany.se

        List<CompanyList> list1 = (List<CompanyList>) list.stream().collect(Collectors.groupingBy(FSecuritiesCompany::getCategory));
        log.info(list1.toString());
    }
}
